package algorithm;

public class demo {
    public static void main(String[] args) {
        int a = 0;
        switch (a) {
            case 0:
                System.out.println(0);
            case 1:
                System.out.println(1);
            case 2:
                System.out.println(2);
            default:
                System.out.println("default");
        }

    }


    public int strStr(String haystack, String needle) {
        return haystack.indexOf(needle);
    }

}
